package com.lanhai.mind.interfaces;

import com.lanhai.mind.beans.DeviceDataBean;
import com.lanhai.mind.enums.ApplyTransferEnum;

/**
 * 对接设备解析协议
 * @author zhengwei
 *
 */
public interface IDeviceProtocol {
	
	//传输指令
	byte[] applyTransfer(byte line, ApplyTransferEnum type); 
	
	//清零指令
	byte[] clear(byte line );
	
	//申请离开指令
	byte[] applyLeave( byte line,ApplyTransferEnum type);
	
	//解析数据
	DeviceDataBean analyseData(byte[] buf);
}
